package com.dcdata.jt809server.protocol.decoder.factory;

import com.dcdata.jt809server.packet.BasePacket;

/**
 * program: JT809Server
 * description:
 * @author DCDATA
 * @date 2020-03-13 15:17
 **/
public interface Decoder {

    /**
     * 解码器
     * @param bytes 数据
     * @return 数据体
     * @throws Exception 异常
     */
    BasePacket decoder(byte[] bytes) throws Exception;
}
